package com.szr.cloud.springboot_hello.reactor;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

import reactor.core.Reactor;
import reactor.event.Event;

@Component
public class DataDealController {

	@Autowired
	@Qualifier("rootReactor")
	private Reactor r;
	
	
	public void saveUser(Map<String,Object> map){
		r.notify("saveUser",Event.wrap(map));
	}
}